home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / eigenlib / ivector.c < prev    next >
Encoding:
Text File  |  1989-11-18  |  169 b   |  9 lines

  1. int *ivector(nl,nh)
  2. int nl,nh;
  3. {
  4.     int *v;
  5.     v = (int *)malloc((unsigned) (nh - nl + 1) * sizeof(int));
  6.     if (!v) printf("ivector: allocation failure");
  7.     return(v - nl);
  8. }
  9.